package alibaba.client.service;

public class ClientBackupServiceResponse {

    private boolean success;
    private String message;
    private Object responseBody;
    private boolean critical;
    
    public ClientBackupServiceResponse() {
        success = true;
    }
    
    public void setResponseBody(Object responseBody) {
        this.responseBody = responseBody;
    }
    public Object getResponseBody() {
        return responseBody;
    }

    public void setFailure() {
        this.success = false;
    }

    public boolean isFailure() {
        return !success;
    }
    
    public boolean isSuccess() {
        return success;
    }
    public void setMessage(String message) {
        this.message = message;
    }
    public String getMessage() {
        return message;
    }

    public void setCritical() {
        this.success = false;
        this.critical = true;
    }

    public boolean isCriticalFailure() {
        return !isSuccess() && critical;
    }
    
}
